<include file="Public:header" />
<body>
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="panel blank-panel">
                    <div class="panel-heading">
                        <div class="panel-options">
                            <ul class="nav nav-tabs">
                                <li ><a href="{:U('index')}">路由列表</a>
                                </li>
                                <li class="active"><a href="{:U('add')}">添加路由</a>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <form method="post" class="form-horizontal" name="myform" action="{:U('insert')}">
                        <div class="panel-body">
                            <div class="tab-content">
                                    <div class="row">
                                        <div class="col-sm-12">
                                            <div class="ibox">
                                                <!-- 原始地址-->
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">原始地址</label>
                                                    <div class="col-sm-5">
                                                        <input type="text" name="full_url" class="form-control" value="{$site_name}">
                                                    </div>
                                                </div>
                                                <div class="hr-line-dashed"></div>
                                                <!-- 实际地址 -->
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">实际地址</label>

                                                    <div class="col-sm-5">
                                                        <input type="text" name="url" class="form-control" value="{$site_keywords}">
                                                    </div>
                                                </div>
                                                <div class="hr-line-dashed"></div>
                                                <!-- 是否启用 -->
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">是否启用</label>
                                                    <div class="col-sm-5">
                                                        <label class="radio-inline">
                                                            <input type="radio" name="status" value="1" {$site_status==1?'checked':''}> 是
                                                        </label>
                                                        <label class="radio-inline">
                                                            <input type="radio" name="status"  value="0" {$site_status==0?'checked':''}> 否
                                                        </label>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <div class="col-sm-4 col-sm-offset-2">
                                        <button class="btn btn-primary" type="submit">提交</button>
                                        <a class="btn" href="{:U('index')}">返回</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>

            </div>
        </div>
    </div>
</div>
</body>
</html>